import {combineReducers} from 'redux';

import houseReducer from './house';
import groupReducer from './group';

// const files = require.context('',false,/.js$/);
// console.log(files.keys());
// let obj = files.keys().reduce((pre,next)=>{
//     let key = next.split('.')[1].slice(1);
//     console.log(key);
//     pre[key] = files(next).default;
//     return pre
// },{})
// console.log(obj);

const reducer = combineReducers({
    houseReducer,
    groupReducer
});

export default reducer